import request from "@/utils/request";
// 获取护理等级
export const getLevelApi = (page,pageSize,name,status) =>  request.get(`/nursing/level/list?page=${page}&pageSize=${pageSize}&name=${name}&status=${status}`)

//新增护理等级
export const addLevelApi = (data) =>  request.post('/nursing/level',data)

//根据ID查询护理等级信息
export const queryInfoApi = (id) => request.get(`/nursing/level/${encodeURIComponent(id)}`);

//修改护理等级信息
export const updateLevelApi = (data) => request.put('/nursing/level', data)

//删除护理等级
export const deleteLevelApi = (id) => request.delete(`/nursing/level?id=${encodeURIComponent(id)}`);